Optimal. Leaf size=44 \[ -\frac {a^2 A}{x}+b x (2 a B+A b)+a \log (x) (a B+2 A b)+\frac {1}{2} b^2 B x^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.080, Rules used = {27, 76} \[ -\frac {a^2 A}{x}+b x (2 a B+A b)+a \log (x) (a B+2 A b)+\frac {1}{2} b^2 B x^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 76
Rubi steps
\begin {align*} \int \frac {(A+B x) \left (a^2+2 a b x+b^2 x^2\right )}{x^2} \, dx &=\int \frac {(a+b x)^2 (A+B x)}{x^2} \, dx\\ &=\int \left (b (A b+2 a B)+\frac {a^2 A}{x^2}+\frac {a (2 A b+a B)}{x}+b^2 B x\right ) \, dx\\ &=-\frac {a^2 A}{x}+b (A b+2 a B) x+\frac {1}{2} b^2 B x^2+a (2 A b+a B) \log (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 43, normalized size = 0.98 \[ -\frac {a^2 A}{x}+a \log (x) (a B+2 A b)+2 a b B x+\frac {1}{2} b^2 x (2 A+B x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.95, size = 52, normalized size = 1.18 \[ \frac {B b^{2} x^{3} - 2 \, A a^{2} + 2 \, {\left (2 \, B a b + A b^{2}\right )} x^{2} + 2 \, {\left (B a^{2} + 2 \, A a b\right )} x \log \relax (x)}{2 \, x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 46, normalized size = 1.05 \[ \frac {1}{2} \, B b^{2} x^{2} + 2 \, B a b x + A b^{2} x - \frac {A a^{2}}{x} + {\left (B a^{2} + 2 \, A a b\right )} \log \left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.06, size = 46, normalized size = 1.05 \[ \frac {B \,b^{2} x^{2}}{2}+2 A a b \ln \relax (x )+A \,b^{2} x +B \,a^{2} \ln \relax (x )+2 B a b x -\frac {A \,a^{2}}{x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.60, size = 46, normalized size = 1.05 \[ \frac {1}{2} \, B b^{2} x^{2} - \frac {A a^{2}}{x} + {\left (2 \, B a b + A b^{2}\right )} x + {\left (B a^{2} + 2 \, A a b\right )} \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.04, size = 46, normalized size = 1.05 \[ \ln \relax (x)\,\left (B\,a^2+2\,A\,b\,a\right )+x\,\left (A\,b^2+2\,B\,a\,b\right )-\frac {A\,a^2}{x}+\frac {B\,b^2\,x^2}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.18, size = 42, normalized size = 0.95 \[ - \frac {A a^{2}}{x} + \frac {B b^{2} x^{2}}{2} + a \left (2 A b + B a\right ) \log {\relax (x )} + x \left (A b^{2} + 2 B a b\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________